<!--
 * @userName: 湫之恋
 * @Author: Seven
 * @Date: 2020-07-01 14:44:39
 * @LastEditors: Seven
 * @LastEditTime: 2020-07-01 14:48:17
 -->
<template>
  <el-form :inline="true"  class="demo-form-inline">
    <el-form-item label="查询值">
      <el-input v-model="inquires.leirong" placeholder="查询值"></el-input>
    </el-form-item>
    <el-form-item label="条件">
      <el-select v-model="inquires.lei" placeholder="条件">
        <el-option label="全部" value="all"></el-option>
        <el-option label="车主" value="unername"></el-option>
        <el-option label="品牌" value="carname"></el-option>
      </el-select>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">查询</el-button>
    </el-form-item>
  </el-form>
</template>
<script>
import axios from "axios";
import { createNamespacedHelpers } from "vuex";
var { mapActions, mapState } = createNamespacedHelpers("car");
export default {
  data() {
    return {
      inquires: {
        lei:'',
        leirong:''
        
      }
    };
  },
  methods: {
    ...mapActions(["getcaractions",'chaxun']),
    onSubmit() {
      this.chaxun(this.inquires)
      // if (this.inquires.searType == "all") {
      //   this.inquires.searValue = "";
      //   this.getInventoryListAsync(this.merchantId);
      // } else {
      //   this.inquires.merchantId=this.merchantId
      //   this.quireInventoryAsync(this.inquires);
      //   // this.getInventoryListAsync(this.merchantId);
      // }
    }
  }
};
</script>
<style scoped>
.el-table th,
.el-table td {
  text-align: center !important;
}
.el-main {
  line-height: normal !important;
}
.el-button--primary{
  background-color: #f3a83f;
  border: 1px solid #f3a83f;
}
</style>